package com.chenxiao.Command;

/**
 * @Author: CX
 * @Date: Created in  2024/04/03 11:18
 * @version: v1.0
 * @Description: TODO 客户端代码
 **/
public class CommandPatternApp {
    public static void main(String[] args) {
        Receiver receiver = new Receiver();
        Command command = new ConcreteCommand(receiver);
        Invoker invoker = new Invoker(command);

        // 调用者执行命令
        invoker.action();
    }
}
